package com.it.jpa.service;

import com.it.jpa.domain.Contract;
import com.it.jpa.model.ApiModel;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ContractService {

    ApiModel insert(Contract contract);

    ApiModel updateById(String contactName,Integer id);

    ApiModel deleteById(Integer id);

    ApiModel findAll();

    ApiModel findByCondition(String contractNo,String contractType,String contactName);

    ApiModel findByContractStatus(Boolean contractType);

    ApiModel findByPage(Integer page,Integer PageSize,String contractNo);
}
